import sys,re
inputfile = open(sys.argv[1]).read()
regexp = re.compile(r'(^\..*?\n(.*?)$)',re.S|re.M)

chords_and_lyrics = []

for m in regexp.findall(inputfile):
  regexp = re.compile(r'[a-ikln-rtv-z]')
  if regexp.search(m[1]):
    chords_and_lyrics.append(m[0])

    
for w in chords_and_lyrics:
  print w
  print '-----'

charlen_dict = {}  
charlengths = open("character_lengths.csv").readlines()
for charlength in charlengths:
  charlength = charlength.trim('\n').split(',')
  if charlength[0] == "comma":
    charlength[0] == ","
  if charlength[0] == "semicolon":
    charlength[0] == ";"
  charlen_dict[charlength[0]]=charlength[1]
#
for w in chords_and_lyrics:
  chords = w.split("\n")[0]
  lyrics = w.split("\n")[1]
  
  